//
//  SQRectificationTableViewCell.m
//  energy
//
//  Created by 苏青 on 2021/10/8.
//

#import "SQRectificationTableViewCell.h"
#import "SQRectificationModel.h"


#import "NSString+NCDate.h"
@implementation SQRectificationTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

+(CGFloat)cellHeight:(BaseModel *)model{
    return W(233);
}
-(void)setModel:(BaseModel<BaseCellModelProtocol> *)model{
    SQRectificationModelData * dataModel = model;
    self.lab_area.text = dataModel.site_area;
    self.lab_time.text = [NSString formateDate:[dataModel.hd_report_time substringWithRange:NSMakeRange(6,13)]];
    self.lab_description.text = dataModel.hd_danger_description;
    self.lab_hd_acceptor_text.text = dataModel.hd_acceptor_text;
    self.lab_hd_acceptor_phone.text = dataModel.hd_acceptor_phone;
    self.lab_hd_acceptance_remarks.text = dataModel.hd_acceptance_remarks;
    
    
}

- (IBAction)clickConfirm:(UIButton *)sender {
    self.cellTitleIndex(@"confirm",(int)self.indexPath.row);
}


- (IBAction)clickLook:(UIButton *)sender {
    self.cellTitleIndex(@"look",(int)self.indexPath.row);
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
